# working institution:School of Mathematical Sciences,Zhejiang University
# author:Kangjie Ding
# date:2022/11/15 21:22
class Settings:
    """存储游戏中所有设置的类"""
    def __init__(self):
        """初始游戏设置"""
        #屏幕设置
        self.screen_width=1200
        self.screen_height=650
        self.bg_color=(246,246,246)
        #飞船设置
        self.ship_speed=1
        self.ships_limit=3
        #子弹设置
        self.bullet_speed=1
        self.bullet_width=2
        self.bullet_height=15
        self.bullet_color=(60,60,60)
        #外星人设置
        self.alien_speed=1
        self.alien_point=50
        self.fleet_drop_speed=2
        self.fleet_direction=1#这里1表示舰队向右移动，-1为向左移动
        #加快游戏节奏的速度
        self.speed_increment=1

    def initialize_dynamic_settings(self):
        """初始化随着游戏进行会动态变化的设置"""
        self.alien_speed=1
        self.alien_point=50
        self.bullet_speed=1
        self.ship_speed=1
        self.fleet_direction=1

    def increase_speed(self):
        """提高速度"""
        self.alien_speed += 1
        self.bullet_speed += 1
        self.ship_speed += 1
        self.alien_point+=50
